home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / CIM / cim_v3 / is / updateexe.iscript < prev    next >
Encoding:
Text File  |  2001-05-01  |  2.2 KB  |  101 lines

  1. ;
  2. ; CIM's Installer Script.
  3. ; $VER: CIMBINInstallerScript 3.1.22 (10.05.00) Written by Jan-Erik Tervo 1998-2000
  4. ; Installer version 42.12 or better recommended
  5. ;
  6.  
  7. (ONERROR
  8.       (EXIT)
  9.         )
  10.  
  11. (SET @default-dest "CIM:bin/")
  12.  
  13. (IF  (exists "CIM:" (noreq))
  14.      (
  15.      
  16.      (SET cim_vernum (getversion "CIM:bin/cim"))
  17.      (SET cim_ver (/ cim_vernum 65536))
  18.      (SET cim_rev (- cim_vernum (* cim_ver 65536)))
  19.  
  20.      (SET e_cim_vernum (getversion "stuff/bin/cim.exe"))
  21.      (SET e_cim_ver (/ e_cim_vernum 65536))
  22.      (SET e_cim_rev (- e_cim_vernum (* e_cim_ver 65536)))
  23.  
  24.  
  25.      ; ENGLISH STRINGS
  26.  
  27.      (SET #alku_str
  28.           (cat "\nThis script will only update the executables at CIM:bin/\n\nYou have currently CIM version " cim_ver "." cim_rev "\n\nYou are about to install version " e_cim_ver "." e_cim_rev)
  29.           )
  30.  
  31.      (SET #str-installing-exe
  32.           (cat "\n\nInstalling...")
  33.  
  34.      )
  35.  
  36.      (SET #str-installingmul
  37.      (cat "\n\nInstalling multifunction.library")
  38.      )
  39.     
  40.  
  41.      (MESSAGE #alku_str)
  42.  
  43.      (COMPLETE 0)
  44.  
  45.      (SET CIMdirBin "CIM:bin/")
  46.      (SET CIMdir "CIM:")
  47.      (SET @default-dest CIMdir)
  48.  
  49.     
  50.     
  51.     (COPYLIB
  52.         (help "No help for this function")
  53.         (source "3rdpartylibs/multifunction.library")
  54.         
  55.         (dest "LIBS:")
  56.         (prompt #str-installingmul)
  57.         (confirm)
  58.          )
  59.  
  60.      (COMPLETE 50)
  61.      
  62.      (DELETE "CIM:bin/cim")
  63.      (DELETE "CIM:bin/waitforthefile")
  64.  
  65.      (COPYFILES
  66.         (source "stuff/bin/")
  67.         (pattern "#?")
  68.         (dest CIMdirBin)
  69.         (prompt #str-installing-exe)
  70.         )
  71.  
  72.      (COMPLETE 75)
  73.  
  74.      (RENAME "CIM:WPositions" "CIM:CONFIG/WPositions")
  75.  
  76.      (RENAME "CIM:area_codes" "CIM:CONFIG/area_codes")
  77.  
  78.      (RENAME "CIM:ccodes" "CIM:CONFIG/ccodes")
  79.      
  80.      (RENAME "CIM:bin/cim.exe" "CIM:bin/cim")
  81.           (RENAME "CIM:bin/cim.exe.asc" "CIM:bin/cim.asc")
  82.      
  83.      (RENAME "CIM:bin/waitforthefile.exe" "CIM:bin/waitforthefile")
  84.           (RENAME "CIM:bin/waitforthefile.exe.asc" "CIM:bin/waitforthefile.asc")
  85.      
  86.      
  87.  
  88.      (PROTECT "CIM:bin/#?" "rwed")
  89.  
  90.      (RUN "multiview IMPORTANT.txt")
  91.  
  92.      )
  93.      (MESSAGE "CIM is not installed correctly! (No CIM: assign.) Can't update.")
  94. )
  95. (COMPLETE 100)
  96.  
  97. ; end of installation
  98.  
  99. (EXIT)
  100.  
  101.